


public enum Anncouncement {
	SUCCESS(1, "The query has done successfull"),
	ERROR_SYNTAX(-10, "Syntax error"),
	ERROR_TABLE_EXIST(-11, "Syntax error"),
	ERROR_FIELD_EXIST(-12, "Syntax error"),
	ERROR_INSERT_FEWER(-21, "Your ID is not exist"),
	ERROR_INSERT_MORE(-22, "Your ID is not exist"),
	ERROR_INSERT_PRIMARYKEYDUB(-23, "Trung field khoa chinh"),
	ERROR_CONVERT_TO_INT(-13, "Conversion failed when converting the varchar value to data type int.");


	  private final int code;
	  private final String description;

	  private Anncouncement(int code, String description) {
	    this.code = code;
	    this.description = description;
	  }

	  public String getDescription() {
	     return description;
	  }  
	  public int getCode() {
		     return code;
		  }
	  

	@Override
		  public String toString() {
		    return code + ": " + description;
		  }
}
